bitkeeper revision 1.967.1.1 (40d190e3V7PN13crvyU7Jlnc76jn_g)
authoriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Thu, 17 Jun 2004 12:38:59 +0000 (12:38 +0000)
committeriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Thu, 17 Jun 2004 12:38:59 +0000 (12:38 +0000)
add searchpath to netfix

tools/xenmgr/netfix

index fcde6292cb17ff6a69c51f64abbb68ef9d36afa2..f325ca663e9f97652f4362cebc3f3fb9bb703e09 100644 (file)
@@ -11,9 +11,10 @@ import sys
 
 from getopt import getopt
 
-CMD_IFCONFIG = '/sbin/ifconfig'
-CMD_ROUTE    = '/sbin/route'
-CMD_BRCTL    = '/usr/local/sbin/brctl'
+os.defpath = os.defpath+':/sbin:/usr/sbin:/usr/local/sbin'
+CMD_IFCONFIG = 'ifconfig'
+CMD_ROUTE    = 'route'
+CMD_BRCTL    = 'brctl'
 
 def routes():
     """Return a list of the routes.